{% extends 'back/index.html' %}

<div class="main-content">
    {% block content1 %}
        <!-- User Info, Notifications and Menu Bar -->
        <nav class="navbar user-info-navbar" role="navigation">

            <!-- Left links for user info navbar -->
            <ul class="user-info-menu left-links list-inline list-unstyled">

                <li class="hidden-sm hidden-xs">
                    <a href="#" data-toggle="sidebar">
                        <i class="fa-bars"></i>
                    </a>
                </li>

                <li class="hover-line">
                    <a href="{% url 'Fenxibaogao_page' %}">
                        分析报告下载
                    </a>
                </li>
            </ul>


            <!-- Right links for user info navbar -->
            <ul class="user-info-menu right-links list-inline list-unstyled">
                <li class="dropdown user-profile">
                    <a href="#" data-toggle="dropdown">
                        <img src="/static/assets/images/user-4.png" alt="user-image"
                             class="img-circle img-inline userpic-32" width="28"/>
                        <span>
                            admin
                            <i class="fa-angle-down"></i>
                        </span>
                    </a>

                    <ul class="dropdown-menu user-profile-menu list-unstyled">
                        <li class="last">
                            <a href="{% url 'login' %}">
                                <i class="fa-lock"></i>
                                注销
                            </a>
                        </li>
                    </ul>
                </li>

            </ul>
        </nav>
        {% block content %}
            <div class="page-title">

                <div class="title-env">
                    <h1 class="title">分析报告下载</h1>
                </div>

                <div class="breadcrumb-env">

                    <ol class="breadcrumb bc-1">
                        <li>
                            <a href={% url 'index' %}><i class="fa-home"></i>主页</a>
                        </li>
                        <li class="active">
                            <strong>分析报告下载</strong>
                        </li>
                    </ol>

                </div>

            </div>
            <script>
                var xenonPalette = ['#68b828', '#7c38bc', '#0e62c7', '#fcd036', '#4fcdfc', '#00b19d', '#ff6264', '#f7aa47'];
            </script>
            <div class="row">
                <div class="col-sm-12">
                    <div class="panel panel-default">
                        <div class="panel-body">
                            <form role="form" class="form-horizontal">

								<div class="form-group">
									<label class="col-sm-2 control-label">标准号</label>
                                    <div class="col-sm-3">
                                        <input type="text" class="form-control" name="biaozhunhao" id="biaozhunhao" placeholder="输入您要查询的标准号" />
                                    </div>
								</div>

                                <div class="form-group-separator"></div>

                                <div class="form-group">
									<label class="col-sm-2 control-label"></label>
									<div class="col-sm-10">
                                        <button class="btn btn-secondary" onclick="downloadbaogao()">下载</button>
                                    </div>
								</div>
                            </form>

                        </div>
                    </div>
                </div>
            </div>
        {% endblock %}

        <script type="text/javascript">
            $("#shijijianguan").addClass('active');
            function downloadbaogao() {
                var biaozhunhao = $("#biaozhunhao").val();
                if(biaozhunhao==""){
                    alert("请输入标准号！")
                }else{
                    window.open("{% url 'download_analysis' %}?biaozhunhao="+biaozhunhao)
                }
            }
        </script>
        <script src="/static/assets/js/layer.js"></script>
    {% endblock %}
</div>



